<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta content="telephone=no" name="format-detection" />
    <link type="text/css" rel="stylesheet" href="/public/home/css/layer.css"/>
    <link href='/public/appapi/css/common.css?t=1553493472' rel="stylesheet" type="text/css" >

		<title>在线商城</title>
		<link href='/public/appapi/css/mall.css?t=1540545919' rel="stylesheet" type="text/css" >
	</head>
<body>
    <div class="tab clearfix">
        <ul>
            <li class="on">
                会员
                <div class="tab_line button_default"></div>
            </li>
            <li>
                靓号
                <div class="tab_line button_default"></div>
            </li>
            <li>
                坐骑
                <div class="tab_line button_default"></div>
            </li>
        </ul>
    </div>
    <div class="tab_bd vip">
        <div class="bd_title">
            <span class="bd_title_line">——</span>
            <span class="bd_title_txt">VIP会员专属特权</span>
            <span class="bd_title_line">——</span>
        </div>
        <div class="bd_content clearfix">
            <ul>
                <li><img src="/public/appapi/images/mall/vip1.png"></li>
                <li><img src="/public/appapi/images/mall/vip2.png"></li>
            </ul>
        </div>
        <div class="vip_button button_default">
            <?php echo ($vip_txt); ?>会员
        </div>
        <div class="vip_end <?php if(!$uservip): ?>hide<?php endif; ?>">
            当前VIP到期时间：<span id="vip_endtime"><?php echo ($uservip['endtime']); ?></span>
        </div>
        
        <div class="vip_buy_body hide">
            <div class="vip_buy_list">
                <div class="vip_buy_list_t">开通账号</div>
                <div class="vip_buy_list_b"><?php echo ($user['user_nicename']); ?> (<?php echo ($user['id']); ?>)</div>
            </div>
            <div class="vip_buy_list hide">
                <div class="vip_buy_list_t">会员类型</div>
                <div class="vip_buy_list_b">
                    <ul>
                        <li class="on">VIP会员</li>
                    </ul>
                </div>
            </div>
            <div class="vip_buy_list">
                <div class="vip_buy_list_t vip_length_t"><?php echo ($vip_txt); ?>时长</div>
                <div class="vip_buy_list_b vip_length">
                    <ul>
                        <?php if(is_array($vip_list)): $i = 0; $__LIST__ = $vip_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li <?php if($i == '1'): ?>class="on"<?php endif; ?> data-id="<?php echo ($v['id']); ?>" data-coin="<?php echo ($v['coin']); ?>" data-length="<?php echo ($long[$v['length']]); ?>">
                            <?php echo ($long[$v['length']]); ?>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
            </div>
            <div class="vip_buy_list">
                <div class="vip_buy_list_t">开通花费</div>
                <div class="vip_buy_list_b">
                    <img src="/public/appapi/images/coin.png" class="coin">
                    <span id="vip_total_coin"><?php echo ($vip_list[0]['coin']); ?></span>
                </div>
            </div>
            
            <div class="vip_buy_list vip_submit_bd">
                <div class="vip_buy_list_t">我的余额</div>
                <div class="vip_buy_list_b">
                    <img src="/public/appapi/images/coin.png" class="coin">
                    <span id="user_coin"><?php echo ($user['coin']); ?></span>
                </div>
                <div class="vip_submit_bd_r">
                    立即<?php echo ($vip_txt); ?>
                </div>
            </div>
        </div>
    </div>
    <div class="tab_bd liang hide">
        <div class="bd_title">
            <span class="bd_title_line">——</span>
            <span class="bd_title_txt">发言时会携带尊贵靓号标识</span>
            <span class="bd_title_line">——</span>
        </div>
        <div class="bd_content clearfix">
            <ul>
                <?php if(is_array($liang_list)): $i = 0; $__LIST__ = $liang_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li>
                   <div class="liang_id">ID:<?php echo ($v['name']); ?></div>
                   <div class="liang_coin"><?php echo ($v['coin_date']); ?></div>
                   <div class="liang_buy" data-id="<?php echo ($v['id']); ?>" data-name="<?php echo ($v['name']); ?>" data-coin="<?php echo ($v['coin_date']); ?>" >购买</div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div class="tab_bd car hide">
        <div class="bd_content clearfix">
            <ul>
                <?php if(is_array($car_list)): $i = 0; $__LIST__ = $car_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li>
                    <div class="car_img">
                        <img src="<?php echo ($v['thumb']); ?>">
                    </div>
                    <div class="car_title">
                        <?php echo ($v['name']); ?>
                    </div>
                    <div class="car_coin">
                        <?php echo ($v['needcoin']); echo ($config['name_coin']); ?>/月
                    </div>
                    <div class="car_buy" data-id="<?php echo ($v['id']); ?>" data-name="<?php echo ($v['name']); ?>" data-coin="<?php echo ($v['needcoin']); ?>">
                        购买
                    </div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
</body>
<script>
	var uid='<?php echo ($uid); ?>';
	var token='<?php echo ($token); ?>';
	var vip_txt='<?php echo ($vip_txt); ?>';
	var name_coin='<?php echo ($config['name_coin']); ?>';
</script>
    <script src="/public/js/jquery.js"></script>
    <script src="/public/home/js/layer.js"></script>


<script src="/public/appapi/js/mall.js?t=1540536042"></script>
</body>
</html>